﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocumentApi.aspx.cs" Inherits="ServerApi.administrator.DocumentApi" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
    <script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <strong>
            <%=title %></strong>
    </div>
    <div>
        <strong>
            <%=info %></strong>
    </div>
    <div style="width: 100%; text-align: center;">
        <asp:GridView ID="GrvListDescription" Width="100%" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
            PageSize="50" CellPadding="4" ForeColor="#333333" GridLines="Vertical" EnableModelValidation="True"
            HorizontalAlign="Left" OnRowDataBound="GrvListDescription_RowDataBound" 
            onrowcommand="GrvListDescription_RowCommand">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#F7F6F3" ForeColor="#333333"
                HorizontalAlign="Left" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Left" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" HorizontalAlign="Center" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemStyle Width="10px" />
                    <ItemTemplate>
                        <%=stt++ %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên Api">
                    <ItemStyle Width="450px" />
                    <ItemTemplate>   
                        <%# ((Boolean)Eval("Expire"))?"<del>"+Eval("Name")+"</del>":Eval("Name")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Android Code">
                   <ItemTemplate>
                        <asp:LinkButton ToolTip="Gen AndroidCode" Font-Overline="false" ForeColor="#007FD3" Text="Gen AndroidCode"
                            CommandArgument='<%#Eval("Id") %>' CommandName="GenAndroidCode" ID="lbnGenAndroidCode" runat="server">
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="WAP Code">
                   <ItemTemplate>
                        <asp:LinkButton ToolTip="Gen WAPCode" Font-Overline="false" ForeColor="#007FD3" Text="Gen WAPCode"
                            CommandArgument='<%#Eval("Id") %>' CommandName="GenWAPCode" ID="lbnGenWAPCode" runat="server">
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Link Mẫu">
                    <ItemStyle Width="50px" />
                    <ItemTemplate>
                        <a href='<%#Eval("LinkDev") %>'>Link mẫu</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Mô tả">
                    <ItemTemplate>
                        <%#Eval("Description")%>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div id="dialog" style="width:400px" title="Code Template">
    </div>
    </form>
</body>
</html>
